package com.cskaoyan.javase.oop3._1interface._4example.model;

/**
 * 用一个商品数组,模拟商品数据源
 *
 * @since 11:06
 * @author wuguidong@cskaoyan.onaliyun.com
 */
public class GoodsData {
    public static final Goods[] GOODS = new Goods[5];

    static {
        GOODS[0] = new Goods(1, "iPhone 14", 6000, "苹果");
        GOODS[1] = new Goods(2, "华为Mate50", 7000, "华为");
        GOODS[2] = null;
        // GOODS[2] = new Goods(3, "OPPO find n", 6000, "OPPO");
        GOODS[3] = new Goods(4, "小米12", 5000, "小米");
        GOODS[4] = new Goods(5, "Vivo X80", 4600, "Vivo");
    }
}
